package com.ali.memory;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import javassist.ClassPool;
import javassist.CtClass;

public class TestPermOOM {

	public static void main(String[] args) throws Exception {
		// TestPermOOM o = new TestPermOOM();
		// ClassPool pool = ClassCreator.getClassPool(o.getClass()
		// .getClassLoader());
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		in.readLine();
		System.out.println("start");

		ClassPool pool = new ClassPool(true);

		for (int i = 0;; i++) {
			CtClass cc = pool.get("com.ali.memory.TestOOM");
			cc.setName("TestOOM$$" + i);
			Class c = cc.toClass();
		}
	}

}
